package com.bosssoft.trainee.mbg.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: wuxin
 * @Project: rbac-SpringCloud
 * @Date: 2022/7/19
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "r_position",autoResultMap = true)
public class Position implements Serializable {
    @TableId(value = "p_id",type = IdType.AUTO)
    private Integer id;
    @TableField(value = "p_name")
    private String name;
    @TableField(value = "p_code")
    private String code;
    @TableField(value = "p_note")
    private String note;
    @TableField(value = "p_state")
    private Integer state;
    @TableField(value = "p_update_time",fill = FieldFill.INSERT_UPDATE)
    @Version
    private Date updateTime;
}
